From: Ian Campbell Date: Tue, 10 Jan 2012 16:19:09 +0000 (+0000) Subject: ocaml: Correct ocaml type name for Aggregate types. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~9232 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=e00ef46e17a54e25ccf2daf36cf6548d38485eca;p=xen.git ocaml: Correct ocaml type name for Aggregate types. No change to the generated code because this path isn't used yet. Signed-off-by: Ian Campbell Acked-by: Ian Jackson Committed-by: Ian Jackson --- diff --git a/tools/ocaml/libs/xl/genwrap.py b/tools/ocaml/libs/xl/genwrap.py index 5f8639a0a7..2e65aec761 100644 --- a/tools/ocaml/libs/xl/genwrap.py +++ b/tools/ocaml/libs/xl/genwrap.py @@ -59,6 +59,8 @@ def ocaml_type_of(ty): if not typename: raise NotImplementedError("No typename for Builtin %s (%s)" % (ty.typename, type(ty))) return typename + elif isinstance(ty,libxltypes.Aggregate): + return ty.rawname.capitalize() + ".t" else: return ty.rawname